package com.novax.ex.activity.open.api.inner;

import com.novax.ex.activity.open.model.query.TaskDataQuery;
import com.novax.ex.activity.open.model.request.task.TaskDataRequest;
import com.novax.ex.activity.open.model.response.TaskDataResponse;
import com.novax.ex.common.results.ReturnResult;
import com.novax.ex.common.util.PageUtil;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springdoc.core.annotations.ParameterObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * 后台 新手引导 关注类任务数据
 */
@Tag(name = "后台-新手引导-关注类任务数据", description = "后台-新手引导-关注类任务数据")
@FeignClient(url = "${remote.activity-service.endpoint}", name = "TaskDataApi", contextId = "TaskDataApi")
public interface TaskDataApi {

    @Operation(summary = "分页查询")
    @GetMapping(value = "/v3/private/task/center/data")
    ReturnResult<PageUtil<TaskDataResponse>> findPage(@RequestHeader("language") String language,
                                                      @ParameterObject TaskDataQuery query);


    @Operation(summary = "编辑")
    @PostMapping(value = "/v3/private/task/center/data/{id}")
    ReturnResult<Boolean> modify(@RequestHeader("language") String language,
                                 @PathVariable Long id,
                                 @RequestBody TaskDataRequest taskDataRequest);
}
